package com.panfeng.xcloud.common.core.constants;

import java.math.BigDecimal;

public class BlConstants {

    /**
     * 图片存储路径
     */
    public static final String IMG_STORE_URL = "images/";

    /**
     * 默认头像
     */
    public static final String DEFAULT_AVATAR = "avatar.png";

    public static final int GT_EXPIRE_TIME = 2;

    /**
     * 内部邀请码：a00000
     */
    public static final String INVITATION_CODE = "a00000";

    /**
     * 默认userId：b60000
     */
    public static final String DEFAULT_USER_ID = "b60000";

    //当前最新的区块高度时间戳
    public final static String REDIS_KEY_NEWEST_BLOCK_NUM = "bodc-c2c:chain:tron:blockNum";

    //当前扫描的区块时间戳区间
    public final static String REDIS_KEY_SCANNED_BLOCK_NUM = "bodc-c2c:chain:tron:curBlockNum";

    public final static String UsdtContractAddress = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";

    public final static int UsdtDecimal = 6;

    public final static int TrxDecimal = 6;

    public final static BigDecimal USDT_DECIMAL = new BigDecimal("1000000");

    public final static BigDecimal TRX_DECIMAL = new BigDecimal("1000000");

    public final static BigDecimal TRC20_USDT_RECHARGE_MIN = new BigDecimal("0.01");

    public final static BigDecimal TRX_FEE_MIN = new BigDecimal("1");

    //TRC20用于归集燃料费
    public final static BigDecimal TRC20_FEE = new BigDecimal("1.2");

    //欧易交易所机器人前缀
    public static final String ROBOT_OKEX = "robot:okex:";

    //火币交易所机器人前缀
    public static final String ROBOT_HUOBI = "robot:huobi:";

    //币安交易所机器人前缀
    public static final String ROBOT_BINANCE = "robot:binance:";

    //机器人key分隔符
    public static final String ROBOT_SPLIT = ":";

    //交易对目的币种和源币种分隔符
    public static final String CONTRACTCODE_SPLIT = "-";

    //对冲仓止盈率
    public static final String OFFSET_STOP_PROFIT_RATIO = "0.03";

    //补仓对冲仓止损率
    public static final String ADD_POSITION_OFFSET_STOP_LOSS = "-0.01";

    //剧烈波动对冲仓固定止损额
    public static final String SPEED_FAST_OFFSET_STOP_LOSS = "-0.3";

}
